小编Mar*_*ker的帖子

将calc()与表一起使用

我正在尝试使用固定宽度tds和可变宽度tds 的表格.

我使用CSS calc()功能,但不知何故,似乎我不能%在表中使用.

这就是我到目前为止所拥有的:

<table border="0" style="width:100%;border-collapse:collapse;">
    <tr style="width:100%">
        <td style="width:30px;">1</td> <!--Fixed width-->
        <td style="width: calc( (100% - 230px) / 100 * 40);">Title</td> <!--Width should be 40% of the remaining space-->
        <td style="width: calc( (100% - 230px) / 100 * 40);">Interpret</td> <!--Width should be 40% of the remaining space-->
        <td style="width: calc( (100% - 230px) / 100 * 20);">Album</td> <!--Width should be 20% of the remaining space-->
        <td style="width:80px;">Year</td><!--Fixed width-->
        <td style="width:180px;">YouTube</td><!--Fixed …
Run Code Online (Sandbox Code Playgroud)

css html-table css3 fixed-width css-calc

16
推荐指数
1
解决办法
1万
查看次数

Swift - Append to array in struct

我目前正在快速学习并正在试验数据结构。在可能的代码中,我有一些带有名称(字符串)和几个任务(字符串数组)的例程。这些值在一个结构中。

所以我试图在初始化后向数组添加另一个值。我的代码实际上正在运行,但是我真的认为它非常奇怪和奇怪,不要认为这是应该完成的方式。

var routineMgr: routineManager = routineManager();
struct routine{
    var name = "Name";
    var tasks = [String]();
}

class routineManager: NSObject {
var routines = [routine]();

func addTask(name: String, desc: String){
    //init routines with name and an array with certain values, here "Hallo" & "Moin"
    routines.append(routine(name: name, tasks: ["Hallo","Moin"]));

 //so i just put this part here to make the example shorter, but it would be in ad different function to make more sense

    //adding a new value ("Salut") to the …
Run Code Online (Sandbox Code Playgroud)

arrays struct append swift

7
推荐指数
1
解决办法
1万
查看次数

ID3 专辑封面/封面标签字段

id3 标签中封面/专辑封面的字段名称是什么?

例如。:

标题:标题 - TT2 - TIT2

艺术家:艺术家 - TP1 - TPE1

专辑 : 专辑 - TAL - TALB

覆盖: ?- ? - ?

我希望有人可以帮助我...

提前谢谢!

id3 artwork id3-tag id3v2

4
推荐指数
1
解决办法
4054
查看次数

标签 统计

append ×1

arrays ×1

artwork ×1

css ×1

css-calc ×1

css3 ×1

fixed-width ×1

html-table ×1

id3 ×1

id3-tag ×1

id3v2 ×1

struct ×1

swift ×1