html - 新行上的 Href

标签 html css

我有以下内容

<div class="venue-description">
   <h4>Description</h4>
                    Nandi Hills are currently undergoing a multi-crore development, including a one crore renovation of the Tipu Fort, via private-public partnership to transform the hills into a tourist hub. The Department of Horticulture is setting up a food court modeled after one in Singapore at a cost of nearly one crore at the hill station.Various varieties of vegetarian and continental food, beverages, bakery products, ice-creams and fresh fruit juices will be available.
<a href="" class="more">view more</a>   
</div>

我想移动 a tag换行。使用 display: block将创建不利于可用性的全宽链接。

我不想使用 <br/>标签

最佳答案

DEMO

a::before {
    content:'';
    display:block;
}

关于html - 新行上的 Href,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21883783/

相关文章:

javascript - 在 jQuery 中使用 "id"更改特定 "this"的 CSS

html - 如何将按钮放在输入旁边?

javascript - 具有自动浏览器刷新 JavaScript 的响应式 FB 页面插件

css将div移动到文本结果下方

css - Selenium 记录和回放一个 css 元素

html - flex card应该相互嵌套,彼此之间有空间,如何解决?

css - 为什么我的 <ul> 有一个不是其父元素的背景?

html - 如何使此按钮不干扰周围环境

php - 如何在PHP中检测手机和平板电脑

javascript - 将 html 标签显示为文本