在下面的例子中,有没有办法固定或规定缩写元素的高度和宽度?谢谢。
<html>
<div class="date"><abbr class='timeago' title=$date></abbr></div>
</html>
最佳答案
dictate 是什么意思?这将是我的解决方案:
abbr
{
display: inline-block;
border: 1px dashed gray;
padding: 5px; /* I guess the best value in this case to play with */
}
<div class="date">This <abbr class='timeago' title=$date>Date</abbr> is important.</div>
关于html - 如何控制<abbr>元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27823438/